#!/bin/bash

# 本地文件夹路径
local_folder="/Users/admin/Documents/lukeye/vue-blog/docs/.vuepress/dist"

# 远程服务器信息
remote_host="47.116.59.171"
remote_user="luke"
remote_password="132435Aa"
remote_port="22"
remote_folder="/home/luke/luke_blog"

# 使用rsync将本地文件夹同步到远程服务器
rsync -e "sshpass -p $remote_password ssh -p $remote_port -o StrictHostKeyChecking=no" -avz "$local_folder" "$remote_user@$remote_host:$remote_folder"
